package com.hopes.bizz.enforcement.hid.dto;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.hopes.boss.common.entity.BaseLogicEntity;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import lombok.EqualsAndHashCode;
import org.springframework.format.annotation.DateTimeFormat;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import java.util.Date;

/**
 * @author daijie
 * @version 1.0
 * @date 2023/8/1 11:16
 * @Description:
 */
@Data
@EqualsAndHashCode(callSuper = true)
@Schema(description = "隐患延期DTO")
public class RiskHidHiddenDangerDelayDTO extends BaseLogicEntity {

    private static final long serialVersionUID = 3060739808939230039L;

    @Schema(description="隐患标识")
    private Long hiddenDangerId;

    @Schema(description="隐患名称")
    private String hiddenDangerName;

    @Schema(description="延期前日期")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @JsonFormat(pattern = "yyyy-MM-dd", timezone = "GMT+8")
    private Date delayBeforeDate;

    @Schema(description="延期日期")
    @NotNull(message = "延期日期不能为空")
    private Date delayDate;

    @Schema(description="申请描述")
    @NotBlank(message = "申请描述不能为空")
    private String applyDesc;

    @Schema(description="申请附件")
    @NotBlank(message = "申请附件不能为空")
    private String applyFile;



}
